Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ru]: auto-fix links #25035

Merged
merged 3 commits into from
Dec 17, 2024
Merged

[ru]: auto-fix links #25035

merged 3 commits into from
Dec 17, 2024

Conversation

argl
Copy link
Contributor

@argl argl commented Dec 12, 2024

Description

This fixes plain markdown links to point to the actual destination without going through the whole redirect stack.
(MP-1798)

Motivation

To continue our transition to rari, we have to weed out any links in documentation that rely on "fundamental redirects". Fundamental redirects (as opposed to our main redirect map) are only there to support requests coming in from really outdated links on the internet.

Additional details

Luckily, yari already has tooling around fixing those links, so this is basically a version of translated content with the fix-flaws/broken-links tooling applied. The result looks very good, and even shows improvements on linking less often to the en-US content when there is a translated version of the page available.

Using the rari diff tool, I have attached a HTML file that highlights all differences before/after the change on the simplified HTML rendering of the content.
Diffs.zip

@github-actions github-actions bot added the l10n-ru Issues related to Russian content. label Dec 12, 2024
Copy link
Contributor

github-actions bot commented Dec 12, 2024

Preview URLs (300 pages)
Flaws (12578)

Note! 41 documents with no flaws that don't need to be listed. 🎉

URL: /ru/docs/Learn/Accessibility/What_is_accessibility
Title: Что такое доступность?
Flaw count: 89

  • macros:
    • /ru/docs/Learn/CSS/Building_blocks/Cascade_layers does not exist but fell back to /en-US/docs/Learn/CSS/Building_blocks/Cascade_layers
    • /ru/docs/Learn/CSS/Building_blocks/Organizing does not exist but fell back to /en-US/docs/Learn/CSS/Building_blocks/Organizing
    • /ru/docs/Learn/CSS/Building_blocks/Creating_fancy_letterheaded_paper does not exist but fell back to /en-US/docs/Learn/CSS/Building_blocks/Creating_fancy_letterheaded_paper
    • /ru/docs/Learn/CSS/Building_blocks/A_cool_looking_box does not exist but fell back to /en-US/docs/Learn/CSS/Building_blocks/A_cool_looking_box
    • /ru/docs/Learn/CSS/CSS_layout/Media_queries does not exist but fell back to /en-US/docs/Learn/CSS/CSS_layout/Media_queries
    • and 84 more flaws omitted

URL: /ru/docs/Learn/Accessibility/CSS_and_JavaScript
Title: CSS и JavaScript доступность - лучшие практики
Flaw count: 89

  • macros:
    • /ru/docs/Learn/CSS/Building_blocks/Cascade_layers does not exist but fell back to /en-US/docs/Learn/CSS/Building_blocks/Cascade_layers
    • /ru/docs/Learn/CSS/Building_blocks/Organizing does not exist but fell back to /en-US/docs/Learn/CSS/Building_blocks/Organizing
    • /ru/docs/Learn/CSS/Building_blocks/Creating_fancy_letterheaded_paper does not exist but fell back to /en-US/docs/Learn/CSS/Building_blocks/Creating_fancy_letterheaded_paper
    • /ru/docs/Learn/CSS/Building_blocks/A_cool_looking_box does not exist but fell back to /en-US/docs/Learn/CSS/Building_blocks/A_cool_looking_box
    • /ru/docs/Learn/CSS/CSS_layout/Media_queries does not exist but fell back to /en-US/docs/Learn/CSS/CSS_layout/Media_queries
    • and 84 more flaws omitted

URL: /ru/docs/Learn/Forms/Styling_web_forms
Title: Стили HTML форм
Flaw count: 99

  • macros:
    • /ru/docs/Learn/CSS/Building_blocks/Cascade_layers does not exist but fell back to /en-US/docs/Learn/CSS/Building_blocks/Cascade_layers
    • /ru/docs/Learn/CSS/Building_blocks/Organizing does not exist but fell back to /en-US/docs/Learn/CSS/Building_blocks/Organizing
    • /ru/docs/Learn/CSS/Building_blocks/Creating_fancy_letterheaded_paper does not exist but fell back to /en-US/docs/Learn/CSS/Building_blocks/Creating_fancy_letterheaded_paper
    • /ru/docs/Learn/CSS/Building_blocks/A_cool_looking_box does not exist but fell back to /en-US/docs/Learn/CSS/Building_blocks/A_cool_looking_box
    • /ru/docs/Learn/CSS/CSS_layout/Media_queries does not exist but fell back to /en-US/docs/Learn/CSS/CSS_layout/Media_queries
    • and 87 more flaws omitted
  • images:
    • External image URL
    • External image URL
    • External image URL
    • External image URL
  • broken_links:
    • Can't resolve /files/4151/background.jpg
    • Link points to the page it's already on
  • translation_differences:
    • Differences in the important macros (1 in common of 2 possible)

URL: /ru/docs/Learn/Forms/User_input_methods
Title: Ввод пользователя и управление
Flaw count: 10

  • macros:
    • /ru/docs/Web/API/Screen/orientation does not exist but fell back to /en-US/docs/Web/API/Screen/orientation
    • /ru/docs/Web/API/Screen/orientationchange does not exist
    • /ru/docs/Web/API/Screen/lockOrientation does not exist but fell back to /en-US/docs/Web/API/Screen/lockOrientation
    • /ru/docs/Web/API/Screen/unlockOrientation does not exist but fell back to /en-US/docs/Web/API/Screen/unlockOrientation
    • /ru/docs/Web/API/Element/requestFullscreen does not exist but fell back to /en-US/docs/Web/API/Element/requestFullscreen
  • images:
    • File not present on disk, an empty file, or not an image
  • broken_links:
    • Can't resolve /ru/docs/Web/Guide/HTML/Dragging_and_Dropping_Multiple_Items
    • Can't resolve /en-US/Firefox_OS/Platform/Keyboard_events_in_Firefox_OS_TV
    • Can't resolve /ru/docs/Mozilla/Firefox_OS/TVs_connected_devices/TV_remote_control_navigation
  • translation_differences:
    • Differences in the important macros (0 in common of 2 possible)

URL: /ru/docs/Learn/Common_questions
Title: Распространённые вопросы
Flaw count: 89

  • macros:
    • /ru/docs/Learn/CSS/Building_blocks/Cascade_layers does not exist but fell back to /en-US/docs/Learn/CSS/Building_blocks/Cascade_layers
    • /ru/docs/Learn/CSS/Building_blocks/Organizing does not exist but fell back to /en-US/docs/Learn/CSS/Building_blocks/Organizing
    • /ru/docs/Learn/CSS/Building_blocks/Creating_fancy_letterheaded_paper does not exist but fell back to /en-US/docs/Learn/CSS/Building_blocks/Creating_fancy_letterheaded_paper
    • /ru/docs/Learn/CSS/Building_blocks/A_cool_looking_box does not exist but fell back to /en-US/docs/Learn/CSS/Building_blocks/A_cool_looking_box
    • /ru/docs/Learn/CSS/CSS_layout/Media_queries does not exist but fell back to /en-US/docs/Learn/CSS/CSS_layout/Media_queries
    • and 84 more flaws omitted

URL: /ru/docs/Learn/Common_questions/Design_and_accessibility/Design_for_all_types_of_users
Title: Как создать дизайн, подходящий для всех пользователей?
Flaw count: 1

  • images:
    • File not present on disk, an empty file, or not an image

URL: /ru/docs/Learn/Common_questions/Web_mechanics/What_is_a_domain_name
Title: Что такое доменные имена
Flaw count: 2

  • macros:
    • /ru/docs/Glossary/IP does not exist
    • /ru/docs/Glossary/TLD does not exist but fell back to /en-US/docs/Glossary/TLD

URL: /ru/docs/Learn/Common_questions/Web_mechanics/Pages_sites_servers_and_search_engines
Title: Веб-страницы, веб-сайты, веб серверы и поисковики
Flaw count: 1

  • broken_links:
    • Can't resolve /ru/docs/MDN/Doc_status/Glossary

URL: /ru/docs/Learn/Common_questions/Web_mechanics/How_does_the_Internet_work
Title: Как работает Интернет
Flaw count: 1

  • macros:
    • /ru/docs/Glossary/IRC does not exist but fell back to /en-US/docs/Glossary/IRC

URL: /ru/docs/Learn/Common_questions/Web_mechanics/What_is_a_web_server
Title: Что такое веб-сервер
Flaw count: 1

  • broken_links:
    • Can't resolve /en-US/404

URL: /ru/docs/Learn/Common_questions/Web_mechanics/What_is_a_URL
Title: Что такое URL-адрес?
Flaw count: 4

  • macros:
    • /ru/docs/Web/HTML/Element/iframe does not exist but fell back to /en-US/docs/Web/HTML/Element/iframe
  • images:
    • File not present on disk, an empty file, or not an image
    • File not present on disk, an empty file, or not an image
    • File not present on disk, an empty file, or not an image

URL: /ru/docs/Learn/Common_questions/Tools_and_setup/What_are_browser_developer_tools
Title: Обзор инструментов разработки в браузерах
Flaw count: 8

  • images:
    • File not present on disk, an empty file, or not an image
    • File not present on disk, an empty file, or not an image
    • File not present on disk, an empty file, or not an image
    • File not present on disk, an empty file, or not an image
    • File not present on disk, an empty file, or not an image
    • and 3 more flaws omitted

URL: /ru/docs/Learn/Common_questions/Tools_and_setup/Upload_files_to_a_web_server
Title: Как загрузить файлы на веб-сервер
Flaw count: 2

  • macros:
    • /ru/docs/Glossary/Rsync does not exist but fell back to /en-US/docs/Glossary/Rsync
    • /ru/docs/Glossary/WebDAV does not exist but fell back to /en-US/docs/Glossary/WebDAV

URL: /ru/docs/Learn/CSS
Title: Научитесь стилизовать HTML с помощью CSS
Flaw count: 89

  • macros:
    • /ru/docs/Learn/CSS/Building_blocks/Cascade_layers does not exist but fell back to /en-US/docs/Learn/CSS/Building_blocks/Cascade_layers
    • /ru/docs/Learn/CSS/Building_blocks/Organizing does not exist but fell back to /en-US/docs/Learn/CSS/Building_blocks/Organizing
    • /ru/docs/Learn/CSS/Building_blocks/Creating_fancy_letterheaded_paper does not exist but fell back to /en-US/docs/Learn/CSS/Building_blocks/Creating_fancy_letterheaded_paper
    • /ru/docs/Learn/CSS/Building_blocks/A_cool_looking_box does not exist but fell back to /en-US/docs/Learn/CSS/Building_blocks/A_cool_looking_box
    • /ru/docs/Learn/CSS/CSS_layout/Media_queries does not exist but fell back to /en-US/docs/Learn/CSS/CSS_layout/Media_queries
    • and 84 more flaws omitted

URL: /ru/docs/Learn/CSS/First_steps
Title: Введение в CSS
Flaw count: 89

  • macros:
    • /ru/docs/Learn/CSS/Building_blocks/Cascade_layers does not exist but fell back to /en-US/docs/Learn/CSS/Building_blocks/Cascade_layers
    • /ru/docs/Learn/CSS/Building_blocks/Organizing does not exist but fell back to /en-US/docs/Learn/CSS/Building_blocks/Organizing
    • /ru/docs/Learn/CSS/Building_blocks/Creating_fancy_letterheaded_paper does not exist but fell back to /en-US/docs/Learn/CSS/Building_blocks/Creating_fancy_letterheaded_paper
    • /ru/docs/Learn/CSS/Building_blocks/A_cool_looking_box does not exist but fell back to /en-US/docs/Learn/CSS/Building_blocks/A_cool_looking_box
    • /ru/docs/Learn/CSS/CSS_layout/Media_queries does not exist but fell back to /en-US/docs/Learn/CSS/CSS_layout/Media_queries
    • and 84 more flaws omitted

URL: /ru/docs/Learn/CSS/First_steps/How_CSS_works
Title: Как работает CSS
Flaw count: 91

  • macros:
    • /ru/docs/Learn/CSS/Building_blocks/Cascade_layers does not exist but fell back to /en-US/docs/Learn/CSS/Building_blocks/Cascade_layers
    • /ru/docs/Learn/CSS/Building_blocks/Organizing does not exist but fell back to /en-US/docs/Learn/CSS/Building_blocks/Organizing
    • /ru/docs/Learn/CSS/Building_blocks/Creating_fancy_letterheaded_paper does not exist but fell back to /en-US/docs/Learn/CSS/Building_blocks/Creating_fancy_letterheaded_paper
    • /ru/docs/Learn/CSS/Building_blocks/A_cool_looking_box does not exist but fell back to /en-US/docs/Learn/CSS/Building_blocks/A_cool_looking_box
    • /ru/docs/Learn/CSS/CSS_layout/Media_queries does not exist but fell back to /en-US/docs/Learn/CSS/CSS_layout/Media_queries
    • and 85 more flaws omitted
  • translation_differences:
    • Differences in the important macros (2 in common of 6 possible)

URL: /ru/docs/Learn/CSS/First_steps/What_is_CSS
Title: Что такое CSS?
Flaw count: 95

  • macros:
    • /ru/docs/Learn/CSS/Building_blocks/Cascade_layers does not exist but fell back to /en-US/docs/Learn/CSS/Building_blocks/Cascade_layers
    • /ru/docs/Learn/CSS/Building_blocks/Organizing does not exist but fell back to /en-US/docs/Learn/CSS/Building_blocks/Organizing
    • /ru/docs/Learn/CSS/Building_blocks/Creating_fancy_letterheaded_paper does not exist but fell back to /en-US/docs/Learn/CSS/Building_blocks/Creating_fancy_letterheaded_paper
    • /ru/docs/Learn/CSS/Building_blocks/A_cool_looking_box does not exist but fell back to /en-US/docs/Learn/CSS/Building_blocks/A_cool_looking_box
    • /ru/docs/Learn/CSS/CSS_layout/Media_queries does not exist but fell back to /en-US/docs/Learn/CSS/CSS_layout/Media_queries
    • and 90 more flaws omitted

URL: /ru/docs/Learn/CSS/CSS_layout/Multiple-column_Layout
Title: Макет с несколькими столбцами
Flaw count: 94

  • macros:
    • /ru/docs/Learn/CSS/Building_blocks/Cascade_layers does not exist but fell back to /en-US/docs/Learn/CSS/Building_blocks/Cascade_layers
    • /ru/docs/Learn/CSS/Building_blocks/Organizing does not exist but fell back to /en-US/docs/Learn/CSS/Building_blocks/Organizing
    • /ru/docs/Learn/CSS/Building_blocks/Creating_fancy_letterheaded_paper does not exist but fell back to /en-US/docs/Learn/CSS/Building_blocks/Creating_fancy_letterheaded_paper
    • /ru/docs/Learn/CSS/Building_blocks/A_cool_looking_box does not exist but fell back to /en-US/docs/Learn/CSS/Building_blocks/A_cool_looking_box
    • /ru/docs/Learn/CSS/CSS_layout/Media_queries does not exist but fell back to /en-US/docs/Learn/CSS/CSS_layout/Media_queries
    • and 88 more flaws omitted
  • translation_differences:
    • Differences in the important macros (1 in common of 13 possible)

URL: /ru/docs/Learn/CSS/CSS_layout/Normal_Flow
Title: Базовый поток
Flaw count: 90

  • macros:
    • /ru/docs/Learn/CSS/Building_blocks/Cascade_layers does not exist but fell back to /en-US/docs/Learn/CSS/Building_blocks/Cascade_layers
    • /ru/docs/Learn/CSS/Building_blocks/Organizing does not exist but fell back to /en-US/docs/Learn/CSS/Building_blocks/Organizing
    • /ru/docs/Learn/CSS/Building_blocks/Creating_fancy_letterheaded_paper does not exist but fell back to /en-US/docs/Learn/CSS/Building_blocks/Creating_fancy_letterheaded_paper
    • /ru/docs/Learn/CSS/Building_blocks/A_cool_looking_box does not exist but fell back to /en-US/docs/Learn/CSS/Building_blocks/A_cool_looking_box
    • /ru/docs/Learn/CSS/CSS_layout/Media_queries does not exist but fell back to /en-US/docs/Learn/CSS/CSS_layout/Media_queries
    • and 84 more flaws omitted
  • translation_differences:
    • Differences in the important macros (1 in common of 3 possible)

URL: /ru/docs/Learn/CSS/CSS_layout/Practical_positioning_examples
Title: Practical positioning examples
Flaw count: 96

  • macros:
    • /ru/docs/Learn/CSS/Building_blocks/Cascade_layers does not exist but fell back to /en-US/docs/Learn/CSS/Building_blocks/Cascade_layers
    • /ru/docs/Learn/CSS/Building_blocks/Organizing does not exist but fell back to /en-US/docs/Learn/CSS/Building_blocks/Organizing
    • /ru/docs/Learn/CSS/Building_blocks/Creating_fancy_letterheaded_paper does not exist but fell back to /en-US/docs/Learn/CSS/Building_blocks/Creating_fancy_letterheaded_paper
    • /ru/docs/Learn/CSS/Building_blocks/A_cool_looking_box does not exist but fell back to /en-US/docs/Learn/CSS/Building_blocks/A_cool_looking_box
    • /ru/docs/Learn/CSS/CSS_layout/Media_queries does not exist but fell back to /en-US/docs/Learn/CSS/CSS_layout/Media_queries
    • and 90 more flaws omitted
  • broken_links:
    • Link points to the page it's already on

URL: /ru/docs/Learn/CSS/CSS_layout/Responsive_Design
Title: Отзывчивый дизайн
Flaw count: 94

  • macros:
    • /ru/docs/Learn/CSS/Building_blocks/Cascade_layers does not exist but fell back to /en-US/docs/Learn/CSS/Building_blocks/Cascade_layers
    • /ru/docs/Learn/CSS/Building_blocks/Organizing does not exist but fell back to /en-US/docs/Learn/CSS/Building_blocks/Organizing
    • /ru/docs/Learn/CSS/Building_blocks/Creating_fancy_letterheaded_paper does not exist but fell back to /en-US/docs/Learn/CSS/Building_blocks/Creating_fancy_letterheaded_paper
    • /ru/docs/Learn/CSS/Building_blocks/A_cool_looking_box does not exist but fell back to /en-US/docs/Learn/CSS/Building_blocks/A_cool_looking_box
    • /ru/docs/Learn/CSS/CSS_layout/Media_queries does not exist but fell back to /en-US/docs/Learn/CSS/CSS_layout/Media_queries
    • and 84 more flaws omitted
  • images:
    • File not present on disk, an empty file, or not an image
    • File not present on disk, an empty file, or not an image
    • File not present on disk, an empty file, or not an image
  • broken_links:
    • Link points to the page it's already on
  • translation_differences:
    • Differences in the important macros (1 in common of 5 possible)

URL: /ru/docs/Learn/CSS/CSS_layout/Grids
Title: Grids
Flaw count: 95

  • macros:
    • /ru/docs/Learn/CSS/Building_blocks/Cascade_layers does not exist but fell back to /en-US/docs/Learn/CSS/Building_blocks/Cascade_layers
    • /ru/docs/Learn/CSS/Building_blocks/Organizing does not exist but fell back to /en-US/docs/Learn/CSS/Building_blocks/Organizing
    • /ru/docs/Learn/CSS/Building_blocks/Creating_fancy_letterheaded_paper does not exist but fell back to /en-US/docs/Learn/CSS/Building_blocks/Creating_fancy_letterheaded_paper
    • /ru/docs/Learn/CSS/Building_blocks/A_cool_looking_box does not exist but fell back to /en-US/docs/Learn/CSS/Building_blocks/A_cool_looking_box
    • /ru/docs/Learn/CSS/CSS_layout/Media_queries does not exist but fell back to /en-US/docs/Learn/CSS/CSS_layout/Media_queries
    • and 87 more flaws omitted
  • broken_links:
    • Anchor not lowercase
    • Link points to the page it's already on
  • translation_differences:
    • Differences in the important macros (1 in common of 11 possible)

URL: /ru/docs/Learn/CSS/CSS_layout/Floats
Title: Float
Flaw count: 90

  • macros:
    • /ru/docs/Learn/CSS/Building_blocks/Cascade_layers does not exist but fell back to /en-US/docs/Learn/CSS/Building_blocks/Cascade_layers
    • /ru/docs/Learn/CSS/Building_blocks/Organizing does not exist but fell back to /en-US/docs/Learn/CSS/Building_blocks/Organizing
    • /ru/docs/Learn/CSS/Building_blocks/Creating_fancy_letterheaded_paper does not exist but fell back to /en-US/docs/Learn/CSS/Building_blocks/Creating_fancy_letterheaded_paper
    • /ru/docs/Learn/CSS/Building_blocks/A_cool_looking_box does not exist but fell back to /en-US/docs/Learn/CSS/Building_blocks/A_cool_looking_box
    • /ru/docs/Learn/CSS/CSS_layout/Media_queries does not exist but fell back to /en-US/docs/Learn/CSS/CSS_layout/Media_queries
    • and 84 more flaws omitted
  • translation_differences:
    • Differences in the important macros (1 in common of 13 possible)

URL: /ru/docs/Learn/CSS/CSS_layout/Introduction
Title: Введение в CSS вёрстку
Flaw count: 95

  • macros:
    • /ru/docs/Learn/CSS/Building_blocks/Cascade_layers does not exist but fell back to /en-US/docs/Learn/CSS/Building_blocks/Cascade_layers
    • /ru/docs/Learn/CSS/Building_blocks/Organizing does not exist but fell back to /en-US/docs/Learn/CSS/Building_blocks/Organizing
    • /ru/docs/Learn/CSS/Building_blocks/Creating_fancy_letterheaded_paper does not exist but fell back to /en-US/docs/Learn/CSS/Building_blocks/Creating_fancy_letterheaded_paper
    • /ru/docs/Learn/CSS/Building_blocks/A_cool_looking_box does not exist but fell back to /en-US/docs/Learn/CSS/Building_blocks/A_cool_looking_box
    • /ru/docs/Learn/CSS/CSS_layout/Media_queries does not exist but fell back to /en-US/docs/Learn/CSS/CSS_layout/Media_queries
    • and 89 more flaws omitted
  • translation_differences:
    • Differences in the important macros (2 in common of 26 possible)

URL: /ru/docs/Learn/CSS/CSS_layout/Positioning
Title: Позиционирование
Flaw count: 95

  • macros:
    • /ru/docs/Learn/CSS/Building_blocks/Cascade_layers does not exist but fell back to /en-US/docs/Learn/CSS/Building_blocks/Cascade_layers
    • /ru/docs/Learn/CSS/Building_blocks/Organizing does not exist but fell back to /en-US/docs/Learn/CSS/Building_blocks/Organizing
    • /ru/docs/Learn/CSS/Building_blocks/Creating_fancy_letterheaded_paper does not exist but fell back to /en-US/docs/Learn/CSS/Building_blocks/Creating_fancy_letterheaded_paper
    • /ru/docs/Learn/CSS/Building_blocks/A_cool_looking_box does not exist but fell back to /en-US/docs/Learn/CSS/Building_blocks/A_cool_looking_box
    • /ru/docs/Learn/CSS/CSS_layout/Media_queries does not exist but fell back to /en-US/docs/Learn/CSS/CSS_layout/Media_queries
    • and 89 more flaws omitted
  • translation_differences:
    • Differences in the important macros (1 in common of 15 possible)

URL: [/ru/docs/Learn/CSS/Howto](https://pr25035.content.dev.mdn.mozit.c…

TRUNCATED!

@argl argl marked this pull request as ready for review December 13, 2024 10:01
@argl argl requested a review from a team as a code owner December 13, 2024 10:01
@argl argl requested review from sashasushko and removed request for a team December 13, 2024 10:01
Copy link
Contributor

@fiji-flo fiji-flo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an automated clean-up and we depend on landing this. Please reach out if this caused any issues which it shouldn't. You can look at the actual changes in this diff.

@fiji-flo fiji-flo merged commit 7775c76 into main Dec 17, 2024
8 checks passed
@fiji-flo fiji-flo deleted the MP-1798-link-fixes-ru branch December 17, 2024 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
l10n-ru Issues related to Russian content.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants